package org.dept;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//消费用户端第二种方法用到api
//Ribbon 和 Eureka 整合以后，客户端可以直接调用方法,不用关系IP地址和端口号
@SpringBootApplication
@EnableDiscoveryClient //自动在服务启动后自动注册到Eureka中,服务发现
@EnableFeignClients(basePackages = {"org.dept"})
public class Feign_80 {
    public static void main(String[] args) {
        SpringApplication.run(Feign_80.class,args);
    }
}
